package com.dorm.cj.chain;

public class DealOne extends Deal {
    @Override
    public void deal(Integer integer) {
        if (integer == 1) {
            System.out.println("One deal with :" + integer);
        } else {
            System.out.println("One cant deal ,next deal will get");
            nextDeal.deal(integer);
        }
    }
}
